package com.hxht.cmp.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "t_cmp_role_auth")
public class RoleAuth {
    /**
     * 角色id
     */
    @Id
    @Column(name = "role_id")
    private Long roleId;

    /**
     * 权限id
     */
    @Id
    @Column(name = "auth_id")
    private Long authId;

    /**
     * 获取角色id
     *
     * @return role_id - 角色id
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * 设置角色id
     *
     * @param roleId 角色id
     */
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取权限id
     *
     * @return auth_id - 权限id
     */
    public Long getAuthId() {
        return authId;
    }

    /**
     * 设置权限id
     *
     * @param authId 权限id
     */
    public void setAuthId(Long authId) {
        this.authId = authId;
    }
}